package main

import "fmt"

func main() {
	//声明
	var age int

	//赋值
	age = 25

	//声明并且初始化
	var name = "小王吧"

	fmt.Println(age, name)

	// 自动推到类型,必须先初始化
	sex := 9223372036854775807

	money := 1.1

	fmt.Printf("sex type is : %T \n", sex)

	fmt.Printf("money type is : %T \n", money)

	var (
		a int
		b int
	)

	a, b = 10, 20

	fmt.Printf("a : %d, b : %d \n", a, b)

	fmt.Printf("c : %d \n", 10%3)
}
